package thread.zjitc.net.lib.share;

/**
 * @author 朱志文
 * @data 2019/11/16 0016
 */
public class Productor implements Runnable {
    MyShareRunnable myShareRunnable;

    public Productor(MyShareRunnable myShareRunnable) {
        this.myShareRunnable = myShareRunnable;
    }

    @Override
    public void run() {
        for (int i = 0; i <5 ; i++) {
            myShareRunnable.produce((float) (Math.random()*100));
        }
    }
}
